ExamPlay Dark Logo
تسجيل الدخول

Computer Science for IGCSE & O level - Databases (Section 4 - No. 19)

What is the difference between `TRUNCATE` and `DELETE` statements?
TRUNCATE is faster and removes all rows, while DELETE is slower and removes specific rows.
TRUNCATE removes specific rows, while DELETE removes all rows.
TRUNCATE is used to add data, while DELETE is used to modify data.
There is no difference; they perform the same function.

توضيح

TRUNCATE is generally faster and removes all rows in a table, resetting the auto-incrementing ID. DELETE removes specified rows based on a WHERE clause, or all rows if no WHERE clause is specified.

تعليقات (0)

تسجيل الدخول للتعليق
إعلان
BrainBehindX Inc Logo
©2026; مدعوم من BrainBehindX Inc